3.54 \(\int (f+g x) (a+b \log (c (d+e x)^n))^3 \, dx\)

Optimal. Leaf size=265 \[ \frac{3 b^2 g n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{4 e^2}+\frac{6 a b^2 n^2 x (e f-d g)}{e}-\frac{3 b n (d+e x) (e f-d g) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}+\frac{(d+e x) (e f-d g) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e^2}-\frac{3 b g n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}+\frac{g (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{6 b^3 n^2 (d+e x) (e f-d g) \log \left (c (d+e x)^n\right )}{e^2}-\frac{3 b^3 g n^3 (d+e x)^2}{8 e^2}-\frac{6 b^3 n^3 x (e f-d g)}{e} \]

[Out]

(6*a*b^2*(e*f - d*g)*n^2*x)/e - (6*b^3*(e*f - d*g)*n^3*x)/e - (3*b^3*g*n^3*(d + e*x)^2)/(8*e^2) + (6*b^3*(e*f
- d*g)*n^2*(d + e*x)*Log[c*(d + e*x)^n])/e^2 + (3*b^2*g*n^2*(d + e*x)^2*(a + b*Log[c*(d + e*x)^n]))/(4*e^2) -
(3*b*(e*f - d*g)*n*(d + e*x)*(a + b*Log[c*(d + e*x)^n])^2)/e^2 - (3*b*g*n*(d + e*x)^2*(a + b*Log[c*(d + e*x)^n
])^2)/(4*e^2) + ((e*f - d*g)*(d + e*x)*(a + b*Log[c*(d + e*x)^n])^3)/e^2 + (g*(d + e*x)^2*(a + b*Log[c*(d + e*
x)^n])^3)/(2*e^2)

________________________________________________________________________________________

Rubi [A]  time = 0.218767, antiderivative size = 265, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 7, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.318, Rules used = {2401, 2389, 2296, 2295, 2390, 2305, 2304} \[ \frac{3 b^2 g n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{4 e^2}+\frac{6 a b^2 n^2 x (e f-d g)}{e}-\frac{3 b n (d+e x) (e f-d g) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}+\frac{(d+e x) (e f-d g) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e^2}-\frac{3 b g n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}+\frac{g (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{6 b^3 n^2 (d+e x) (e f-d g) \log \left (c (d+e x)^n\right )}{e^2}-\frac{3 b^3 g n^3 (d+e x)^2}{8 e^2}-\frac{6 b^3 n^3 x (e f-d g)}{e} \]

Antiderivative was successfully verified.

[In]

Int[(f + g*x)*(a + b*Log[c*(d + e*x)^n])^3,x]

[Out]

(6*a*b^2*(e*f - d*g)*n^2*x)/e - (6*b^3*(e*f - d*g)*n^3*x)/e - (3*b^3*g*n^3*(d + e*x)^2)/(8*e^2) + (6*b^3*(e*f
- d*g)*n^2*(d + e*x)*Log[c*(d + e*x)^n])/e^2 + (3*b^2*g*n^2*(d + e*x)^2*(a + b*Log[c*(d + e*x)^n]))/(4*e^2) -
(3*b*(e*f - d*g)*n*(d + e*x)*(a + b*Log[c*(d + e*x)^n])^2)/e^2 - (3*b*g*n*(d + e*x)^2*(a + b*Log[c*(d + e*x)^n
])^2)/(4*e^2) + ((e*f - d*g)*(d + e*x)*(a + b*Log[c*(d + e*x)^n])^3)/e^2 + (g*(d + e*x)^2*(a + b*Log[c*(d + e*
x)^n])^3)/(2*e^2)

Rule 2401

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_)*((f_.) + (g_.)*(x_))^(q_.), x_Symbol] :> Int[Exp
andIntegrand[(f + g*x)^q*(a + b*Log[c*(d + e*x)^n])^p, x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p}, x] && NeQ[
e*f - d*g, 0] && IGtQ[q, 0]

Rule 2389

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.), x_Symbol] :> Dist[1/e, Subst[Int[(a + b*Log[c*
x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, n, p}, x]

Rule 2296

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.), x_Symbol] :> Simp[x*(a + b*Log[c*x^n])^p, x] - Dist[b*n*p, In
t[(a + b*Log[c*x^n])^(p - 1), x], x] /; FreeQ[{a, b, c, n}, x] && GtQ[p, 0] && IntegerQ[2*p]

Rule 2295

Int[Log[(c_.)*(x_)^(n_.)], x_Symbol] :> Simp[x*Log[c*x^n], x] - Simp[n*x, x] /; FreeQ[{c, n}, x]

Rule 2390

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_) + (g_.)*(x_))^(q_.), x_Symbol] :> Dist[1/
e, Subst[Int[((f*x)/d)^q*(a + b*Log[c*x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p, q}, x]
 && EqQ[e*f - d*g, 0]

Rule 2305

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*Lo
g[c*x^n])^p)/(d*(m + 1)), x] - Dist[(b*n*p)/(m + 1), Int[(d*x)^m*(a + b*Log[c*x^n])^(p - 1), x], x] /; FreeQ[{
a, b, c, d, m, n}, x] && NeQ[m, -1] && GtQ[p, 0]

Rule 2304

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*Log[c*x^
n]))/(d*(m + 1)), x] - Simp[(b*n*(d*x)^(m + 1))/(d*(m + 1)^2), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1
]

Rubi steps

\begin{align*} \int (f+g x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \, dx &=\int \left (\frac{(e f-d g) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e}+\frac{g (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e}\right ) \, dx\\ &=\frac{g \int (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \, dx}{e}+\frac{(e f-d g) \int \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \, dx}{e}\\ &=\frac{g \operatorname{Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right )^3 \, dx,x,d+e x\right )}{e^2}+\frac{(e f-d g) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right )^3 \, dx,x,d+e x\right )}{e^2}\\ &=\frac{(e f-d g) (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e^2}+\frac{g (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}-\frac{(3 b g n) \operatorname{Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+e x\right )}{2 e^2}-\frac{(3 b (e f-d g) n) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+e x\right )}{e^2}\\ &=-\frac{3 b (e f-d g) n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}-\frac{3 b g n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}+\frac{(e f-d g) (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e^2}+\frac{g (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{\left (3 b^2 g n^2\right ) \operatorname{Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right ) \, dx,x,d+e x\right )}{2 e^2}+\frac{\left (6 b^2 (e f-d g) n^2\right ) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right ) \, dx,x,d+e x\right )}{e^2}\\ &=\frac{6 a b^2 (e f-d g) n^2 x}{e}-\frac{3 b^3 g n^3 (d+e x)^2}{8 e^2}+\frac{3 b^2 g n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{4 e^2}-\frac{3 b (e f-d g) n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}-\frac{3 b g n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}+\frac{(e f-d g) (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e^2}+\frac{g (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{\left (6 b^3 (e f-d g) n^2\right ) \operatorname{Subst}\left (\int \log \left (c x^n\right ) \, dx,x,d+e x\right )}{e^2}\\ &=\frac{6 a b^2 (e f-d g) n^2 x}{e}-\frac{6 b^3 (e f-d g) n^3 x}{e}-\frac{3 b^3 g n^3 (d+e x)^2}{8 e^2}+\frac{6 b^3 (e f-d g) n^2 (d+e x) \log \left (c (d+e x)^n\right )}{e^2}+\frac{3 b^2 g n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{4 e^2}-\frac{3 b (e f-d g) n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}-\frac{3 b g n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}+\frac{(e f-d g) (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e^2}+\frac{g (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}\\ \end{align*}

Mathematica [A]  time = 0.113686, size = 201, normalized size = 0.76 \[ \frac{8 (d+e x) (e f-d g) \left (a+b \log \left (c (d+e x)^n\right )\right )^3-24 b n (e f-d g) \left ((d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2-2 b n \left (e x (a-b n)+b (d+e x) \log \left (c (d+e x)^n\right )\right )\right )+4 g (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3-3 b g n \left (2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2+b n \left (b e n x (2 d+e x)-2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )\right )\right )}{8 e^2} \]

Antiderivative was successfully verified.

[In]

Integrate[(f + g*x)*(a + b*Log[c*(d + e*x)^n])^3,x]

[Out]

(8*(e*f - d*g)*(d + e*x)*(a + b*Log[c*(d + e*x)^n])^3 + 4*g*(d + e*x)^2*(a + b*Log[c*(d + e*x)^n])^3 - 24*b*(e
*f - d*g)*n*((d + e*x)*(a + b*Log[c*(d + e*x)^n])^2 - 2*b*n*(e*(a - b*n)*x + b*(d + e*x)*Log[c*(d + e*x)^n]))
- 3*b*g*n*(2*(d + e*x)^2*(a + b*Log[c*(d + e*x)^n])^2 + b*n*(b*e*n*x*(2*d + e*x) - 2*(d + e*x)^2*(a + b*Log[c*
(d + e*x)^n]))))/(8*e^2)

________________________________________________________________________________________

Maple [C]  time = 1.192, size = 11547, normalized size = 43.6 \begin{align*} \text{output too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((g*x+f)*(a+b*ln(c*(e*x+d)^n))^3,x)

[Out]

result too large to display

________________________________________________________________________________________

Maxima [B]  time = 1.61373, size = 894, normalized size = 3.37 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x+f)*(a+b*log(c*(e*x+d)^n))^3,x, algorithm="maxima")

[Out]

1/2*b^3*g*x^2*log((e*x + d)^n*c)^3 + 3/2*a*b^2*g*x^2*log((e*x + d)^n*c)^2 + b^3*f*x*log((e*x + d)^n*c)^3 - 3*a
^2*b*e*f*n*(x/e - d*log(e*x + d)/e^2) - 3/4*a^2*b*e*g*n*(2*d^2*log(e*x + d)/e^3 + (e*x^2 - 2*d*x)/e^2) + 3/2*a
^2*b*g*x^2*log((e*x + d)^n*c) + 3*a*b^2*f*x*log((e*x + d)^n*c)^2 + 1/2*a^3*g*x^2 + 3*a^2*b*f*x*log((e*x + d)^n
*c) - 3*(2*e*n*(x/e - d*log(e*x + d)/e^2)*log((e*x + d)^n*c) + (d*log(e*x + d)^2 - 2*e*x + 2*d*log(e*x + d))*n
^2/e)*a*b^2*f - (3*e*n*(x/e - d*log(e*x + d)/e^2)*log((e*x + d)^n*c)^2 - e*n*((d*log(e*x + d)^3 + 3*d*log(e*x
+ d)^2 - 6*e*x + 6*d*log(e*x + d))*n^2/e^2 - 3*(d*log(e*x + d)^2 - 2*e*x + 2*d*log(e*x + d))*n*log((e*x + d)^n
*c)/e^2))*b^3*f - 3/4*(2*e*n*(2*d^2*log(e*x + d)/e^3 + (e*x^2 - 2*d*x)/e^2)*log((e*x + d)^n*c) - (e^2*x^2 + 2*
d^2*log(e*x + d)^2 - 6*d*e*x + 6*d^2*log(e*x + d))*n^2/e^2)*a*b^2*g - 1/8*(6*e*n*(2*d^2*log(e*x + d)/e^3 + (e*
x^2 - 2*d*x)/e^2)*log((e*x + d)^n*c)^2 + e*n*((4*d^2*log(e*x + d)^3 + 3*e^2*x^2 + 18*d^2*log(e*x + d)^2 - 42*d
*e*x + 42*d^2*log(e*x + d))*n^2/e^3 - 6*(e^2*x^2 + 2*d^2*log(e*x + d)^2 - 6*d*e*x + 6*d^2*log(e*x + d))*n*log(
(e*x + d)^n*c)/e^3))*b^3*g + a^3*f*x

________________________________________________________________________________________

Fricas [B]  time = 2.20802, size = 1925, normalized size = 7.26 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x+f)*(a+b*log(c*(e*x+d)^n))^3,x, algorithm="fricas")

[Out]

1/8*(4*(b^3*e^2*g*n^3*x^2 + 2*b^3*e^2*f*n^3*x + (2*b^3*d*e*f - b^3*d^2*g)*n^3)*log(e*x + d)^3 + 4*(b^3*e^2*g*x
^2 + 2*b^3*e^2*f*x)*log(c)^3 - (3*b^3*e^2*g*n^3 - 6*a*b^2*e^2*g*n^2 + 6*a^2*b*e^2*g*n - 4*a^3*e^2*g)*x^2 - 6*(
(4*b^3*d*e*f - 3*b^3*d^2*g)*n^3 - 2*(2*a*b^2*d*e*f - a*b^2*d^2*g)*n^2 + (b^3*e^2*g*n^3 - 2*a*b^2*e^2*g*n^2)*x^
2 - 2*(2*a*b^2*e^2*f*n^2 - (2*b^3*e^2*f - b^3*d*e*g)*n^3)*x - 2*(b^3*e^2*g*n^2*x^2 + 2*b^3*e^2*f*n^2*x + (2*b^
3*d*e*f - b^3*d^2*g)*n^2)*log(c))*log(e*x + d)^2 - 6*((b^3*e^2*g*n - 2*a*b^2*e^2*g)*x^2 - 2*(2*a*b^2*e^2*f - (
2*b^3*e^2*f - b^3*d*e*g)*n)*x)*log(c)^2 + 2*(4*a^3*e^2*f - 3*(8*b^3*e^2*f - 7*b^3*d*e*g)*n^3 + 6*(4*a*b^2*e^2*
f - 3*a*b^2*d*e*g)*n^2 - 6*(2*a^2*b*e^2*f - a^2*b*d*e*g)*n)*x + 6*((8*b^3*d*e*f - 7*b^3*d^2*g)*n^3 - 2*(4*a*b^
2*d*e*f - 3*a*b^2*d^2*g)*n^2 + (b^3*e^2*g*n^3 - 2*a*b^2*e^2*g*n^2 + 2*a^2*b*e^2*g*n)*x^2 + 2*(b^3*e^2*g*n*x^2
+ 2*b^3*e^2*f*n*x + (2*b^3*d*e*f - b^3*d^2*g)*n)*log(c)^2 + 2*(2*a^2*b*d*e*f - a^2*b*d^2*g)*n + 2*(2*a^2*b*e^2
*f*n + (4*b^3*e^2*f - 3*b^3*d*e*g)*n^3 - 2*(2*a*b^2*e^2*f - a*b^2*d*e*g)*n^2)*x - 2*((4*b^3*d*e*f - 3*b^3*d^2*
g)*n^2 + (b^3*e^2*g*n^2 - 2*a*b^2*e^2*g*n)*x^2 - 2*(2*a*b^2*d*e*f - a*b^2*d^2*g)*n - 2*(2*a*b^2*e^2*f*n - (2*b
^3*e^2*f - b^3*d*e*g)*n^2)*x)*log(c))*log(e*x + d) + 6*((b^3*e^2*g*n^2 - 2*a*b^2*e^2*g*n + 2*a^2*b*e^2*g)*x^2
+ 2*(2*a^2*b*e^2*f + (4*b^3*e^2*f - 3*b^3*d*e*g)*n^2 - 2*(2*a*b^2*e^2*f - a*b^2*d*e*g)*n)*x)*log(c))/e^2

________________________________________________________________________________________

Sympy [A]  time = 9.59272, size = 1479, normalized size = 5.58 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x+f)*(a+b*ln(c*(e*x+d)**n))**3,x)

[Out]

Piecewise((a**3*f*x + a**3*g*x**2/2 - 3*a**2*b*d**2*g*n*log(d + e*x)/(2*e**2) + 3*a**2*b*d*f*n*log(d + e*x)/e
+ 3*a**2*b*d*g*n*x/(2*e) + 3*a**2*b*f*n*x*log(d + e*x) - 3*a**2*b*f*n*x + 3*a**2*b*f*x*log(c) + 3*a**2*b*g*n*x
**2*log(d + e*x)/2 - 3*a**2*b*g*n*x**2/4 + 3*a**2*b*g*x**2*log(c)/2 - 3*a*b**2*d**2*g*n**2*log(d + e*x)**2/(2*
e**2) + 9*a*b**2*d**2*g*n**2*log(d + e*x)/(2*e**2) - 3*a*b**2*d**2*g*n*log(c)*log(d + e*x)/e**2 + 3*a*b**2*d*f
*n**2*log(d + e*x)**2/e - 6*a*b**2*d*f*n**2*log(d + e*x)/e + 6*a*b**2*d*f*n*log(c)*log(d + e*x)/e + 3*a*b**2*d
*g*n**2*x*log(d + e*x)/e - 9*a*b**2*d*g*n**2*x/(2*e) + 3*a*b**2*d*g*n*x*log(c)/e + 3*a*b**2*f*n**2*x*log(d + e
*x)**2 - 6*a*b**2*f*n**2*x*log(d + e*x) + 6*a*b**2*f*n**2*x + 6*a*b**2*f*n*x*log(c)*log(d + e*x) - 6*a*b**2*f*
n*x*log(c) + 3*a*b**2*f*x*log(c)**2 + 3*a*b**2*g*n**2*x**2*log(d + e*x)**2/2 - 3*a*b**2*g*n**2*x**2*log(d + e*
x)/2 + 3*a*b**2*g*n**2*x**2/4 + 3*a*b**2*g*n*x**2*log(c)*log(d + e*x) - 3*a*b**2*g*n*x**2*log(c)/2 + 3*a*b**2*
g*x**2*log(c)**2/2 - b**3*d**2*g*n**3*log(d + e*x)**3/(2*e**2) + 9*b**3*d**2*g*n**3*log(d + e*x)**2/(4*e**2) -
 21*b**3*d**2*g*n**3*log(d + e*x)/(4*e**2) - 3*b**3*d**2*g*n**2*log(c)*log(d + e*x)**2/(2*e**2) + 9*b**3*d**2*
g*n**2*log(c)*log(d + e*x)/(2*e**2) - 3*b**3*d**2*g*n*log(c)**2*log(d + e*x)/(2*e**2) + b**3*d*f*n**3*log(d +
e*x)**3/e - 3*b**3*d*f*n**3*log(d + e*x)**2/e + 6*b**3*d*f*n**3*log(d + e*x)/e + 3*b**3*d*f*n**2*log(c)*log(d
+ e*x)**2/e - 6*b**3*d*f*n**2*log(c)*log(d + e*x)/e + 3*b**3*d*f*n*log(c)**2*log(d + e*x)/e + 3*b**3*d*g*n**3*
x*log(d + e*x)**2/(2*e) - 9*b**3*d*g*n**3*x*log(d + e*x)/(2*e) + 21*b**3*d*g*n**3*x/(4*e) + 3*b**3*d*g*n**2*x*
log(c)*log(d + e*x)/e - 9*b**3*d*g*n**2*x*log(c)/(2*e) + 3*b**3*d*g*n*x*log(c)**2/(2*e) + b**3*f*n**3*x*log(d
+ e*x)**3 - 3*b**3*f*n**3*x*log(d + e*x)**2 + 6*b**3*f*n**3*x*log(d + e*x) - 6*b**3*f*n**3*x + 3*b**3*f*n**2*x
*log(c)*log(d + e*x)**2 - 6*b**3*f*n**2*x*log(c)*log(d + e*x) + 6*b**3*f*n**2*x*log(c) + 3*b**3*f*n*x*log(c)**
2*log(d + e*x) - 3*b**3*f*n*x*log(c)**2 + b**3*f*x*log(c)**3 + b**3*g*n**3*x**2*log(d + e*x)**3/2 - 3*b**3*g*n
**3*x**2*log(d + e*x)**2/4 + 3*b**3*g*n**3*x**2*log(d + e*x)/4 - 3*b**3*g*n**3*x**2/8 + 3*b**3*g*n**2*x**2*log
(c)*log(d + e*x)**2/2 - 3*b**3*g*n**2*x**2*log(c)*log(d + e*x)/2 + 3*b**3*g*n**2*x**2*log(c)/4 + 3*b**3*g*n*x*
*2*log(c)**2*log(d + e*x)/2 - 3*b**3*g*n*x**2*log(c)**2/4 + b**3*g*x**2*log(c)**3/2, Ne(e, 0)), ((a + b*log(c*
d**n))**3*(f*x + g*x**2/2), True))

________________________________________________________________________________________

Giac [B]  time = 1.30678, size = 1824, normalized size = 6.88 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x+f)*(a+b*log(c*(e*x+d)^n))^3,x, algorithm="giac")

[Out]

1/2*(x*e + d)^2*b^3*g*n^3*e^(-2)*log(x*e + d)^3 - (x*e + d)*b^3*d*g*n^3*e^(-2)*log(x*e + d)^3 - 3/4*(x*e + d)^
2*b^3*g*n^3*e^(-2)*log(x*e + d)^2 + 3*(x*e + d)*b^3*d*g*n^3*e^(-2)*log(x*e + d)^2 + (x*e + d)*b^3*f*n^3*e^(-1)
*log(x*e + d)^3 + 3/2*(x*e + d)^2*b^3*g*n^2*e^(-2)*log(x*e + d)^2*log(c) - 3*(x*e + d)*b^3*d*g*n^2*e^(-2)*log(
x*e + d)^2*log(c) + 3/4*(x*e + d)^2*b^3*g*n^3*e^(-2)*log(x*e + d) - 6*(x*e + d)*b^3*d*g*n^3*e^(-2)*log(x*e + d
) - 3*(x*e + d)*b^3*f*n^3*e^(-1)*log(x*e + d)^2 + 3/2*(x*e + d)^2*a*b^2*g*n^2*e^(-2)*log(x*e + d)^2 - 3*(x*e +
 d)*a*b^2*d*g*n^2*e^(-2)*log(x*e + d)^2 - 3/2*(x*e + d)^2*b^3*g*n^2*e^(-2)*log(x*e + d)*log(c) + 6*(x*e + d)*b
^3*d*g*n^2*e^(-2)*log(x*e + d)*log(c) + 3*(x*e + d)*b^3*f*n^2*e^(-1)*log(x*e + d)^2*log(c) + 3/2*(x*e + d)^2*b
^3*g*n*e^(-2)*log(x*e + d)*log(c)^2 - 3*(x*e + d)*b^3*d*g*n*e^(-2)*log(x*e + d)*log(c)^2 - 3/8*(x*e + d)^2*b^3
*g*n^3*e^(-2) + 6*(x*e + d)*b^3*d*g*n^3*e^(-2) + 6*(x*e + d)*b^3*f*n^3*e^(-1)*log(x*e + d) - 3/2*(x*e + d)^2*a
*b^2*g*n^2*e^(-2)*log(x*e + d) + 6*(x*e + d)*a*b^2*d*g*n^2*e^(-2)*log(x*e + d) + 3*(x*e + d)*a*b^2*f*n^2*e^(-1
)*log(x*e + d)^2 + 3/4*(x*e + d)^2*b^3*g*n^2*e^(-2)*log(c) - 6*(x*e + d)*b^3*d*g*n^2*e^(-2)*log(c) - 6*(x*e +
d)*b^3*f*n^2*e^(-1)*log(x*e + d)*log(c) + 3*(x*e + d)^2*a*b^2*g*n*e^(-2)*log(x*e + d)*log(c) - 6*(x*e + d)*a*b
^2*d*g*n*e^(-2)*log(x*e + d)*log(c) - 3/4*(x*e + d)^2*b^3*g*n*e^(-2)*log(c)^2 + 3*(x*e + d)*b^3*d*g*n*e^(-2)*l
og(c)^2 + 3*(x*e + d)*b^3*f*n*e^(-1)*log(x*e + d)*log(c)^2 + 1/2*(x*e + d)^2*b^3*g*e^(-2)*log(c)^3 - (x*e + d)
*b^3*d*g*e^(-2)*log(c)^3 - 6*(x*e + d)*b^3*f*n^3*e^(-1) + 3/4*(x*e + d)^2*a*b^2*g*n^2*e^(-2) - 6*(x*e + d)*a*b
^2*d*g*n^2*e^(-2) - 6*(x*e + d)*a*b^2*f*n^2*e^(-1)*log(x*e + d) + 3/2*(x*e + d)^2*a^2*b*g*n*e^(-2)*log(x*e + d
) - 3*(x*e + d)*a^2*b*d*g*n*e^(-2)*log(x*e + d) + 6*(x*e + d)*b^3*f*n^2*e^(-1)*log(c) - 3/2*(x*e + d)^2*a*b^2*
g*n*e^(-2)*log(c) + 6*(x*e + d)*a*b^2*d*g*n*e^(-2)*log(c) + 6*(x*e + d)*a*b^2*f*n*e^(-1)*log(x*e + d)*log(c) -
 3*(x*e + d)*b^3*f*n*e^(-1)*log(c)^2 + 3/2*(x*e + d)^2*a*b^2*g*e^(-2)*log(c)^2 - 3*(x*e + d)*a*b^2*d*g*e^(-2)*
log(c)^2 + (x*e + d)*b^3*f*e^(-1)*log(c)^3 + 6*(x*e + d)*a*b^2*f*n^2*e^(-1) - 3/4*(x*e + d)^2*a^2*b*g*n*e^(-2)
 + 3*(x*e + d)*a^2*b*d*g*n*e^(-2) + 3*(x*e + d)*a^2*b*f*n*e^(-1)*log(x*e + d) - 6*(x*e + d)*a*b^2*f*n*e^(-1)*l
og(c) + 3/2*(x*e + d)^2*a^2*b*g*e^(-2)*log(c) - 3*(x*e + d)*a^2*b*d*g*e^(-2)*log(c) + 3*(x*e + d)*a*b^2*f*e^(-
1)*log(c)^2 - 3*(x*e + d)*a^2*b*f*n*e^(-1) + 1/2*(x*e + d)^2*a^3*g*e^(-2) - (x*e + d)*a^3*d*g*e^(-2) + 3*(x*e
+ d)*a^2*b*f*e^(-1)*log(c) + (x*e + d)*a^3*f*e^(-1)